package parking.abcast;

import java.io.Serializable;

/**
 * Class used when a process replies to the original sender
 * @author Sophie and Ronnie
 * @date 9 November 2013
 */
public class MessageAcknowledgment implements Serializable {

	private static final long serialVersionUID = 564439488024698388L;
	private String idMessage;			//id of the original message
	private float estampilleProcessus;	//the new calculated clock.idSender value
	
	/**
	 * Constructor of the MessageAcknowledgment class
	 * @param idMessage	: id of the original message
	 * @param estampilleProcessus : clock.idSender value
	 */
	public MessageAcknowledgment(String idMessage, float estampilleProcessus) {
		this.idMessage = idMessage;
		this.estampilleProcessus = estampilleProcessus;
	}
	
	/**
	 * @return the current id of the message
	 */
	public String getIdMessage() {
		return this.idMessage;
	}
	
	/**
	 * @return the current clock.idSender value
	 */
	public float getEstampilleProcessus() {
		return this.estampilleProcessus;
	}
}
